﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
    public static class Log
    {
        private static StringBuilder log = new StringBuilder();

        /// <summary>
        /// Appends the specified string to the log and returns a reference to the string builder.
        /// </summary>
        /// <param name="s">The string.</param>
        /// <returns></returns>
        public static StringBuilder Append(String s)
        {
            return log.Append(s);
        }

        /// <summary>
        /// Appends the specified string with a new line to the log and returns a reference to the string builder.
        /// </summary>
        /// <param name="s">The s.</param>
        /// <returns></returns>
        public static StringBuilder AppendLine(String s)
        {
            return log.AppendLine(s);
        }

        /// <summary>
        /// Gets the log in string form.
        /// </summary>
        /// <returns>The Log in string form</returns>
        public static String getLog()
        {
            return log.ToString();
        }
    }
}
